package com.yourenbang.transaction.api.service.pay;

import com.yourenbang.lingyun.constants.enums.ServiceNameConstants;
import com.yourenbang.lingyun.constants.enums.pay.PayFromEnum;
import com.yourenbang.lingyun.constants.enums.pay.PayTypeEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 支付方式
 */
@FeignClient(value = ServiceNameConstants.SERVICE_TRANSACTION)
@RequestMapping("/service/paytype/")
public interface PayTypeApiService {

    /**
     * 获取支付通道参数
     */
    @RequestMapping(value = "/getPayParamsByChannel")
    Map<String, String> getPayParamsByChannel(@RequestParam("payChannel") Integer payChannelId);

    /**
     * 获取支付通道参数
     */
    @RequestMapping(value = "/getPayParams")
    Map<String, String> getPayParams(@RequestParam("payType") PayTypeEnum payType, @RequestParam("payFrom") PayFromEnum payFrom);

}
